package com.newjiabo.system.domain.vo;

import cn.hutool.core.bean.BeanUtil;
import com.newjiabo.system.domain.SysRegion;

import java.util.ArrayList;
import java.util.List;

/**
 * 地区VO
 *
 * @author Chopper
 * @since 2021-02-08 09:49
 */
public class RegionVO extends SysRegion {

    /**
     * 子信息
     */
    private List<RegionVO> children;

    public RegionVO(SysRegion region) {
        BeanUtil.copyProperties(region, this);
        this.children = new ArrayList<>();
    }

    public RegionVO() {
    }

    public List<RegionVO> getChildren() {
        return children;
    }

    public void setChildren(List<RegionVO> children) {
        this.children = children;
    }
}
